package com.mszlu.blog.service;

import com.mszlu.blog.vo.Result;
import com.mszlu.blog.vo.params.ArticleParam;
import com.mszlu.blog.vo.params.PageParams;

/**
 * @Package: com.mszlu.blog.service
 * @ClassName: ArticleService
 * @Author: 陈威
 * @CreateTime: 2021/8/27 15:10
 * @Description:
 */

public interface ArticleService {
    //分页查询文章列表
    Result listArticle(PageParams pageParams);
    Result listArticleAll(PageParams pageParams);
    //最热文章
    Result hotArticle(int limit);
    //最新文章
    Result newArticle(int limit);
    //文章归档
    Result listArchives();

    //根据id获取文章详细信息
    Result findArticleById(Long id);

    //发布文章
    Result publish(ArticleParam articleParam);
    //删除文章
    Result deleteArticle(Long id);
}